﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class LoaiPinBUS
    {
        public List<LoaiPinDTO> load_loaiPin()
        {
            return PinDAO.Load_LoaiPin();
        }
        public int Load_GiaPin(int MaLoaiPin)
        {
            return PinDAO.LoadGiaPin(MaLoaiPin);
        }

        public static void Xoa_LoaiPin(int id)
        {
            PinDAO.XoaLoaiPin(id);
        }

        public static LoaiPinDTO Load_PinTheoId(int id)
        {
           return PinDAO.Load_LoaiPinTheoMa(id);
        }

        public static void CapNhat_GiaPin(LoaiPinDTO pin)
        {
            PinDAO.CapNhat_GiaTienPin(pin);
        }

        public static void ThemLoaiPinMoi(LoaiPinDTO pin)
        {
            PinDAO.ThemLoaiPinMoi(pin);
        }

    }
}
